﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RestFulService
{
    //外卖订单查询
    public class WMOrd
    {
        /// <summary>
        /// 
        /// </summary>
        public int code { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string msg { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public List<WMtranhead> tranhead { get; set; }
    }

    public class WMtranhead
    {
        /// <summary>
        /// 
        /// </summary>
        public int orderid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string orderno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string orderdate { get; set; }
        /// <summary>
        /// 外卖渠道: 1 美团/2 饿了么/ 3 商城
        /// </summary>
        public string orderstye { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string vipno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string vipname { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string telno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal orderAmt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ordertype { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ordertime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string address { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string memo { get; set; }
        /// <summary>
        ///  0:未处理 / 1:已接单 / 2:已取消
        /// </summary>
        public int orderstate { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public List<WMtrandtl> trandtl { get; set; }
    }

    public class WMtrandtl
    {
        /// <summary>
        /// 
        /// </summary>
        public int line { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string pluno { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string pluname { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal pluprice { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int qty { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal discount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal amt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tasklist { get; set; }
    }

}
